package com.mall.futurmall.common.constant;

/**
 * @author 码码呀
 * @Desxription 商品属性常量
 * @createTime 2020-10-12
 * @version 0.1
 */
public class ProductConstant {

    public enum AttrEnum{

        ATTR_BASIC_TYPE(0,"基本属性"),
        ATTR_SALE_TYPE(1,"销售属性");

        // 类型值
        private int code;

        // 类型信息说明
        private String msg;

        /**
         * code和msg属性的get方法用来保护和获取code和msg的值
         * @return
         */
        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }

        AttrEnum(int code, String msg) {
            this.code = code;
            this.msg = msg;
        }
    }

    public enum ProductStatusEnum{
        PRODUCT_NEW_SPU(0,"新建商品SPU"),
        PRODUCT_SPU_UP(1,"商品上架"),
        PRODUCT_SPU_DOWN(2,"商品下架");

        private int code;
        private String msg;

        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }

        ProductStatusEnum(int code, String msg) {
            this.code = code;
            this.msg = msg;
        }
    }
}
